
$w:200px;
$h:100px;
div{
    width: $w;
    height: $h;
    border:5px solid blue;
}

p{
    @extend div;
    color:red;
    font-size:30px;
    @if($w>100){
        font-size:20px
    }@else if($w>80px){
        font-size:15px;
    }
}

